package com.sq.partner.manager.dao;

import java.util.HashMap;
import java.util.List;

import com.sq.partner.manager.mybatis.model.GatewayRole;
import com.sq.partner.manager.mybatis.model.GatewayUser;
import com.sq.partner.manager.util.Page;

public interface ActirationCardPowerDao extends BaseDao {

	/**
	 * 根据name查询角色信息
	 * @param roleNames 格式'','',''
	 * @return
	 * @throws Exception
	 */
	public List<GatewayRole> queryroles(String roleNames) throws Exception;
	/**
	 * 删除角色信息
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public boolean delRoles(HashMap<String,Object> map) throws Exception;
	/**
	 * 修改机构及权限
	 * @return
	 * @throws Exception
	 */
	public boolean updateUserComPower(GatewayUser user) throws Exception;
	/**
	 * 分页查询用户
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public Page<GatewayUser> queryUser(Page<GatewayUser> page) throws Exception;
	/**
	 * 查询所有激活卡角色
	 * @return
	 * @throws Exception
	 */
	public List<GatewayRole> queryAllRole(String para) throws Exception;
	/**
	 * 查询用户角色信息
	 * @param userid
	 * @return
	 * @throws Exception
	 */
	public List<GatewayRole> queryUserRole(String userid) throws Exception;
}
